package com.caiyigo.baihua.model;

import java.io.Serializable;
import java.util.Date;

import com.caiyigo.baihua.utils.DateSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

public class SystemLog implements Serializable {

	private Integer id;

	private Integer uid;

	private Integer operation;
	
	private String url;

	private String ip;

	private Date date;
	private String log;

	public String getLog() {
		return log;
	}

	public void setLog(String log) {
		this.log = log;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getUid() {
		return uid;
	}

	public void setUid(Integer uid) {
		this.uid = uid;
	}

	public Integer getOperation() {
		return operation;
	}

	public void setOperation(Integer operation) {
		this.operation = operation;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the
	 * value of the database column system_log.ip
	 *
	 * @return the value of system_log.ip
	 *
	 * @mbggenerated Sun Nov 16 17:05:59 CST 2014
	 */
	public String getIp() {
		return ip;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the
	 * value of the database column system_log.ip
	 *
	 * @param ip
	 *            the value for system_log.ip
	 *
	 * @mbggenerated Sun Nov 16 17:05:59 CST 2014
	 */
	public void setIp(String ip) {
		this.ip = ip;
	}

	/**
	 * This method was generated by MyBatis Generator. This method returns the
	 * value of the database column system_log.date
	 *
	 * @return the value of system_log.date
	 *
	 * @mbggenerated Sun Nov 16 17:05:59 CST 2014
	 */
	@JsonSerialize(using = DateSerializer.class)
	public Date getDate() {
		return date;
	}

	/**
	 * This method was generated by MyBatis Generator. This method sets the
	 * value of the database column system_log.date
	 *
	 * @param date
	 *            the value for system_log.date
	 *
	 * @mbggenerated Sun Nov 16 17:05:59 CST 2014
	 */
	public void setDate(Date date) {
		this.date = date;
	}

	

	public SystemLog() {
	};

	public SystemLog(Integer uid,Integer operation,
			String url, String ip, Date date, String log) {
		super();
		this.uid = uid;
		
		this.operation = operation;
		this.url = url;
		this.ip = ip;
		this.date = date;
		this.log = log;
	}

}